bin_PROGRAMS = mwf_master_indp mwf_worker_indp mwf_master_socket mwf_worker_socket

AM_CXXFLAGS = -I$(top_srcdir)/src/libfractal @AM_CXXFLAGS@
AM_LDFLAGS = @AM_LDFLAGS@

# MW-Independent
mwf_master_indp_SOURCES = MWFDriver.cpp MWFTask.cpp MWFMasterMain.cpp MWFWorker.cpp
mwf_master_indp_LDADD = -lMW_indp -lMWRMComm_indp -lMWRC_indp -lMWutil_indp -lboost_program_options $(top_builddir)/src/libfractal/libfractal.a $(LIBPNG) -lz
mwf_master_indp_CXXFLAGS = $(AM_CXXFLAGS) -DINDEPENDENT

mwf_worker_indp_SOURCES = MWFWorker.cpp MWFTask.cpp MWFWorkerMain.cpp
mwf_worker_indp_LDADD = -lMW_indp -lMWRMComm_indp -lMWRC_indp -lMWutil_indp $(top_builddir)/src/libfractal/libfractal.a
mwf_worker_indp_CXXFLAGS = $(AM_CXXFLAGS) -DINDEPENDENT

# MW-Socket Dependencies 
mwf_master_socket_SOURCES = MWFDriver.cpp MWFTask.cpp MWFMasterMain.cpp MWFWorker.cpp
mwf_master_socket_LDADD = -lMW -lMWRMComm -lMWutil -lNWS -lMWsocketmaster -lboost_program_options $(top_builddir)/src/libfractal/libfractal.a $(LIBPNG) -lz

mwf_worker_socket_SOURCES = MWFWorker.cpp MWFTask.cpp MWFWorkerMain.cpp
mwf_worker_socket_LDADD = -lMW -lMWRMComm -lMWutil -lNWS -lMWsocketmaster $(top_builddir)/src/libfractal/libfractal.a